package com.cims.action.customer;

import com.cims.action.BaseAction;
import com.cims.bo.customer.CustomerBO;
import com.cims.bo.customer.CustomerBOImpl;
import com.cims.common.vo.Customer;
import com.sun.net.httpserver.Authenticator.Success;

public class CustomerAction extends BaseAction{
	
	private CustomerBO  customerBO = new CustomerBOImpl();
	private Customer customer = new Customer();
	
	
	public CustomerAction() {
		
	}

	//create account
	public String register() {
		try {
			System.out.println("insert customer");
			customerBO.register(customer);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return SUCCESS;
	}

	public CustomerBO getCustomerBO() {
		return customerBO;
	}


	public void setCustomerBO(CustomerBO customerBO) {
		this.customerBO = customerBO;
	}


	public Customer getCustomer() {
		return customer;
	}


	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	
	
}
